/*!
 @header RegisterPersonBaseInfoViewController.h
 @author 周益
 @version 1.0.0 2013/01/28 Creation
 Copyright (c) 2013年 mypocketbaby. All rights reserved.
 */

#import <UIKit/UIKit.h>
#import "JSONRequest.h"
#import "GKImageCropper.h"
#import "RTLabel.h"
#import "UICustomPickerView.h"

/*!
 @abstract RegisterPersonBaseInfoViewController用于注册用户的个人信息，包括性别和头像
 */
@interface RegisterPersonBaseInfoViewController : UIViewController<UIImagePickerControllerDelegate, UINavigationControllerDelegate, JSONRequestDelegate, GKImageCropperDelegate, UIActionSheetDelegate, UICustomPickerViewDelegate>
{
    UIButton *_manButton;                       //供选择男性的按钮
    UIButton *_womanButton;                     //供选择女性的按钮
    UIImageView *_genderImageView;              //头像选择框
    
    bool _canChangeImageBg;                     //判断在性别切换时，头像是否可以改变；用户在选择头像后，就不能改变了
    
    bool _isGenderImageChanged;                 //判断用户是否设置的头像
    
    bool _isGenderButtonChanged;                //判断用户是否设置了性别
    
    RTLabel *_areaLabel;                        
    NSString *_area;                            //地区
    UICustomPickerView *_customPickerView;        //自定义pickerview
}

/*!
 @abstract 头像
 已经经过压缩处理
 */
@property (nonatomic, strong)UIImage *avatar;
@end
